
             
/**
 * 
 *
 * Copyright (c) 2012-2013 JLLT Corp. 2012-2013,All Rights Reserved.
 * This software is published under the 金麟龙腾商贸有限公司.
 * License version 1.0, a copy of which has been included with this
 * distribution in the LICENSE.txt file. 
 *
 * @File name:  TProductDetailDao.java 
 * @Create on:  2012-06-28 21:05:412
 * @Author      :  高宇舟
 *
 * @ChangeList
 * ---------------------------------------------------
 * Date         Editor              ChangeReasons
 *
 */
           
        package com.boho.ecp.product.dao;

            
import java.sql.Connection;

import cn.boho.framework.po.CQExp;
import cn.boho.framework.po.DAO;
import cn.boho.framework.po.DynaBeanMap;
            
        /**
 * 【商品附属信息:T_PRODUCT_DETAIL】的Dao操作类
 * 
 */
public class TProductDetailDao extends DAO {
	/**
	* 根据条件查询【商品附属信息:T_PRODUCT_DETAIL|】信息
	* @param con
	* @param productId 商品标识
	* @return
	* @throws Exception
	* @date2012-08-01
	* @author 高宇舟
	* 
	*/
	public static DynaBeanMap queryTProductDetailByCondition(Connection con,java.lang.Integer productId)throws Exception{
		CQExp cqExp = CQExp.instance().select("select * from T_PRODUCT_DETAIL ")
			.where()
			.filed("T_PRODUCT_DETAIL.PRODUCT_ID",CQExp.EQ,productId)
			.filed("T_PRODUCT_DETAIL.IS_VALID",CQExp.EQ,1)
			;
		System.out.println(cqExp.getSql());
		return cqExp.getDynaBeanMap("T_PRODUCT_DETAIL",con);
	}

}
